package routes

import (
	"github.com/gin-gonic/gin"
	"pro/internal/handler"
	"pro/internal/middleware"
)

func Routes(r *gin.Engine) {
	video := r.Group("/api/")
	video.Use(middleware.AuthUserMiddleware())
	{
		video.POST("video/add", handler.AddVideo)
	}

	r.GET("video/info", handler.VideoInfo)
}
